﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace LCQ.QueryBuilder
{
    [StructLayout(LayoutKind.Sequential)]
    public struct OrderByClause
    {
        public string FieldName;
        public Sorting SortOrder;
        public OrderByClause(string field)
        {
            this.FieldName = field;
            this.SortOrder = Sorting.Ascending;
        }

        public OrderByClause(string field, Sorting order)
        {
            this.FieldName = field;
            this.SortOrder = order;
        }
    }
}
